package com.example.mybatisplusdemo.service;

import com.example.mybatisplusdemo.model.domain.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mybatisplusdemo.model.dto.UserCartProductDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lqj
 * @since 2025-06-30
 */
public interface ICartService extends IService<Cart> {

    List<UserCartProductDTO> getCartByUserId(Long userId);

    boolean addToCart(Long userId, Long productId, BigDecimal quantity);
}
